﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using AIS.SDK.Model;

namespace AIS.SDK.Api.ApiResponses
{
    public class AccessTokenResponse : ApiResponse
    {
        public string username { get; set; }

        public string addressNumber { get; set; }
        public string alphaName { get; set; }

        public string simpleDateFormat { get; set; }


        public string token { get; set; }

        public bool withLog { get; set; }
         

        public UserInfo userInfo { get; set; }

       
        public override string ToString()
        {
            if (IsError)
                return base.ToString();

            return $"token:{userInfo.token}";
        }
    }
}
